package org.mct.mes.entity;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Column;
import org.springframework.data.relational.core.mapping.Table;

import java.time.OffsetDateTime;

@EntityScan
@Table(name = "mes_raw_data_v2")
public class MesRawDataV2 {
    @Id
    public Long id;

    @Column(value = "device_code")
    public String deviceCode;

    @Column(value = "enter_time")
    public OffsetDateTime enterTime;

    @Column(value = "guid")
    public String guid;

    @Column(value = "json_content")
    public Object jsonContent;

    @Column(value = "json_response")
    public Object jsonResponse;

    @Column(value = "port_url")
    public String portUrl;

    @Column(value = "post_time")
    public OffsetDateTime postTime;

    @Column(value = "respon_time")
    public OffsetDateTime responTime;

    @Column(value = "unit_no")
    public Integer unitNo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public OffsetDateTime getEnterTime() {
        return enterTime;
    }

    public void setEnterTime(OffsetDateTime enterTime) {
        this.enterTime = enterTime;
    }

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public Object getJsonContent() {
        return jsonContent;
    }

    public void setJsonContent(Object jsonContent) {
        this.jsonContent = jsonContent;
    }

    public Object getJsonResponse() {
        return jsonResponse;
    }

    public void setJsonResponse(Object jsonResponse) {
        this.jsonResponse = jsonResponse;
    }

    public String getPortUrl() {
        return portUrl;
    }

    public void setPortUrl(String portUrl) {
        this.portUrl = portUrl;
    }

    public OffsetDateTime getPostTime() {
        return postTime;
    }

    public void setPostTime(OffsetDateTime postTime) {
        this.postTime = postTime;
    }

    public OffsetDateTime getResponTime() {
        return responTime;
    }

    public void setResponTime(OffsetDateTime responTime) {
        this.responTime = responTime;
    }

    public Integer getUnitNo() {
        return unitNo;
    }

    public void setUnitNo(Integer unitNo) {
        this.unitNo = unitNo;
    }

}